import React, { useState } from 'react';
import { Text, ActivityIndicator } from 'react-native';
import Modal from 'react-native-modal';

const LoadModal = ({
  isVisible
}) => {
  return (
    <Modal
      isVisible={isVisible}
      style={{
        alignItems: 'center',
        justifyContent: 'center',
      }}>
      <ActivityIndicator color="#FFF" size={'large'} />
      <Text style={{color:'#FFF'}}>Loading...</Text>
    </Modal>
  );
};

export default LoadModal;
